package scc.project.dao;

import org.apache.ibatis.annotations.Param;
import scc.project.entity.Custom;

import java.util.List;

public interface CustomDao {

    List<Custom> find(@Param("offset") int offset,
                      @Param("rows") int rows,
                      @Param("address") String address,
                      @Param("customName") String customName);

    Long findTotal(@Param("address") String address,
                   @Param("customName") String customName);

    int insert(Custom custom);

    Custom selectById(Long id);

    int updateById(Custom custom);

    int deleteById(Long id);

    List<Custom> selectAll();
}